package com.example.ymm.modules1.mapper.my.user;

import com.example.ymm.base.CoreMapper;
import com.example.ymm.modules1.entity.my.user.DbOrder;
import com.example.ymm.modules1.query.DbOrderQueryCriteria;
import com.example.ymm.modules1.service.dto.SysRankingQueryCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
@Mapper
public interface DbOrderMapper extends CoreMapper<DbOrder> {

    /**
     * 获取一个小时前未取消的订单数据
     * @param criteria
     * @return
     */
    List<DbOrder> getOneHourOrderList(DbOrderQueryCriteria criteria);


    /**
     * 统计待取货订单数
     * @param criteria
     * @return
     */
    Integer orderNumCount(SysRankingQueryCriteria criteria);


    /**
     * 统计已兑换积分
     * @param criteria
     * @return
     */
    Double totalConversionIntegral(SysRankingQueryCriteria criteria);
}